package com.api.mc
{
	import com.game.display.AutoGCMovieClip;
	import com.game.btnClass.AddMouseEvent;
	import com.game.btnClass.McBtnClass1;
	
	import flash.display.MovieClip;
	import flash.display.SimpleButton;
	import flash.events.MouseEvent;
	
	public class ChooseUser extends AutoGCMovieClip
	{
		public var userA:MovieClip;
		public var userB:MovieClip;
		private var _btnList:Vector.<McBtnClass1>=new Vector.<McBtnClass1>();
		private var _fun:Function;
		public function ChooseUser()
		{
		}
		public function init(fun:Function):void{
			_fun=fun;
			_btnList.push(new McBtnClass1(userA,chooseA));
			_btnList.push(new McBtnClass1(userB,chooseB));
		}
		private function chooseA():void{
			_fun("A");
		}
		private function chooseB():void{
			_fun("B")
		}
		public function gc():void{
			for(var i:int=0;i<_btnList.length;i++){
				_btnList[i].delBtnMouseEvent();
			}
		}
	}
}